-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for nonlinear value coupling #215
Conversation
122b4ad
to
4cd862e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #215 +/- ##
==========================================
- Coverage 95.10% 95.05% -0.05%
==========================================
Files 23 23
Lines 1184 1213 +29
==========================================
+ Hits 1126 1153 +27
- Misses 58 60 +2 ☔ View full report in Codecov by Sentry. |
cede7c9
to
14f22e6
Compare
…he Edges variable, and can be specified when using the function .add_node in the Network class. Both the belief update and the prediction error steps have been changed. I have compared the behaviour of my code to Peter's one in Julia and they look similar. Next step will be figure out how to provide the function with parameters that can be retrieved by the model fitting, but I think I need Nicolas' help :)
Now it's possible to add different coupling functions to different value parents. There was an error in the previous code in PE calculation (it took the function g from the child node and not the parent node, in which is inputed). Minor edits: non_linear_funct is now coupling_funct
Alright, I think we can merge here, thank you for your work @KoraTMontemagno |
I tried to update the functions using non linear equations
I don't know if I handled correctly the static arguments though...